<?php $this->_extends('_layouts/default_layout'); ?>
<?php echo $this->_block('title')?>
<?php echo '会员中心推荐赚钱',$config['sitename'] ?>
<?php echo $this->_endblock()?>
<?php echo $this->_block('meta')?>
<link rel="stylesheet"
	type="text/css" href="<?php echo $_BASE_DIR; ?>css/global.css" />
<link rel="stylesheet"
	href="<?php echo $_BASE_DIR; ?>images/account_con.css" type="text/css">

<script
	type="text/javascript"
	src="<?php echo $_BASE_DIR?>javascripts/jquery.min.js"></script>
<script
	type="text/javascript"
	src="<?php echo $_BASE_DIR?>javascripts/source/dwz.tree.js"></script>
<?php echo $this->_endblock()?>
<?php $this->_block('center'); ?>
<div class="line6px">
	<img src="<?php echo $_BASE_DIR; ?>images/account_con_03.jpg">
</div>
<div id="maincon_c">
<?php $this->_element('userleft') ?>
	<div id="maincon_c_r">
		<div id="tjmain">
			<div id="maininfo">
				<table border="2" bordercolor="#FFFFFF" cellpadding="0"
					cellspacing="0" width="100%">
					<tbody>
						<tr>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="clear"></div>
		<br>
		<table border="1" bordercolor="#FFFFFF" cellpadding="0"
			cellspacing="0" width="100%">
			<tbody>
				<tr>
					<td class="firtr" width="20%"><strong>订单ID</strong></td>
					<td class="firtr" ><strong>卡号</strong></td>
					<td class="firtr" ><strong>卡密</strong></td>
					<td class="firtr" width="15%"><strong>提取时间</strong></td>
					<td class="firtr" width="40"><strong>状态</strong></td>
				</tr>
				<?php foreach($item as $k=>$v):?>
				<tr>
					<td><center>
					<?php echo $v->orderid?>
						</center></td>
					<td><center>
					<?php echo $v->card->code?>
						</center></td>
					<td><center>
					<?php echo $v->card->pass?>
						</center></td>
					<td><center>
					<?php echo date('y/m/d H:i',$v->card->gettime);?>
						</center></td>
					<td><center>
					<?php switch ($v->orderstatus)
					{
						case 0:
							echo '成功';
							break;
						case 1:
							echo '未支付';
							break;
						case 2:
							echo '<a href="'.url('pay/Dispatch',array('oid'=>$v->orderid)).'" target="_blank">','提卡</a>';
							break;
						case 3:
							echo '已提卡';
							break;
						case 999:
						default:
							echo '订单取消';
							break;
					}?>
						</center></td>
				</tr>
				<?php endforeach;?>
			</tbody>
		</table>
		<div class="page">
		<?php echo $this->_control('pagination', 'my-pagination', array('pagination' => $pagination,'url_args'=>$param)); ?>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div style="margin-bottom: 10px;" class="line6px">
	<img src="<?php echo $_BASE_DIR; ?>images/account_con_15.jpg">
</div>
		<?php $this->_endblock(); ?>
